package com.charger.PromoteOperations.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName newclient
 */
@TableName(value ="newclient")
public class Newclient implements Serializable {
    /**
     * 序号
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 新用户名称
     */
    private String name;

    /**
     * 登录账号
     */
    private String username;

    /**
     * 手机号
     */
    private Long phone;

    /**
     * 是否投资商 (Y/N)
     */
    private String investors;

    /**
     * 积分
     */
    private Long integral;

    /**
     * 是否开通充电卡 (Y/N)
     */
    private String chargecard;

    /**
     * 认证信息
     */
    private String authentication;

    /**
     * 性别 (M/F)
     */
    private String sex;

    /**
     * 身份证号码
     */
    private String identificationnumber;

    /**
     * 居住地址
     */
    private String address;

    /**
     * 头像
     */
    private String img;

    /**
     * 生成时间
     */
    private Date spawntime;

    /**
     * 逻辑删除 (默认为 0)
     */
    private Integer del;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    public Long getId() {
        return id;
    }

    /**
     * 序号
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 新用户名称
     */
    public String getName() {
        return name;
    }

    /**
     * 新用户名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 登录账号
     */
    public String getUsername() {
        return username;
    }

    /**
     * 登录账号
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 手机号
     */
    public Long getPhone() {
        return phone;
    }

    /**
     * 手机号
     */
    public void setPhone(Long phone) {
        this.phone = phone;
    }

    /**
     * 是否投资商 (Y/N)
     */
    public String getInvestors() {
        return investors;
    }

    /**
     * 是否投资商 (Y/N)
     */
    public void setInvestors(String investors) {
        this.investors = investors;
    }

    /**
     * 积分
     */
    public Long getIntegral() {
        return integral;
    }

    /**
     * 积分
     */
    public void setIntegral(Long integral) {
        this.integral = integral;
    }

    /**
     * 是否开通充电卡 (Y/N)
     */
    public String getChargecard() {
        return chargecard;
    }

    /**
     * 是否开通充电卡 (Y/N)
     */
    public void setChargecard(String chargecard) {
        this.chargecard = chargecard;
    }

    /**
     * 认证信息
     */
    public String getAuthentication() {
        return authentication;
    }

    /**
     * 认证信息
     */
    public void setAuthentication(String authentication) {
        this.authentication = authentication;
    }

    /**
     * 性别 (M/F)
     */
    public String getSex() {
        return sex;
    }

    /**
     * 性别 (M/F)
     */
    public void setSex(String sex) {
        this.sex = sex;
    }

    /**
     * 身份证号码
     */
    public String getIdentificationnumber() {
        return identificationnumber;
    }

    /**
     * 身份证号码
     */
    public void setIdentificationnumber(String identificationnumber) {
        this.identificationnumber = identificationnumber;
    }

    /**
     * 居住地址
     */
    public String getAddress() {
        return address;
    }

    /**
     * 居住地址
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 头像
     */
    public String getImg() {
        return img;
    }

    /**
     * 头像
     */
    public void setImg(String img) {
        this.img = img;
    }

    /**
     * 生成时间
     */
    public Date getSpawntime() {
        return spawntime;
    }

    /**
     * 生成时间
     */
    public void setSpawntime(Date spawntime) {
        this.spawntime = spawntime;
    }

    /**
     * 逻辑删除 (默认为 0)
     */
    public Integer getDel() {
        return del;
    }

    /**
     * 逻辑删除 (默认为 0)
     */
    public void setDel(Integer del) {
        this.del = del;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Newclient other = (Newclient) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getInvestors() == null ? other.getInvestors() == null : this.getInvestors().equals(other.getInvestors()))
            && (this.getIntegral() == null ? other.getIntegral() == null : this.getIntegral().equals(other.getIntegral()))
            && (this.getChargecard() == null ? other.getChargecard() == null : this.getChargecard().equals(other.getChargecard()))
            && (this.getAuthentication() == null ? other.getAuthentication() == null : this.getAuthentication().equals(other.getAuthentication()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getIdentificationnumber() == null ? other.getIdentificationnumber() == null : this.getIdentificationnumber().equals(other.getIdentificationnumber()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getImg() == null ? other.getImg() == null : this.getImg().equals(other.getImg()))
            && (this.getSpawntime() == null ? other.getSpawntime() == null : this.getSpawntime().equals(other.getSpawntime()))
            && (this.getDel() == null ? other.getDel() == null : this.getDel().equals(other.getDel()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getInvestors() == null) ? 0 : getInvestors().hashCode());
        result = prime * result + ((getIntegral() == null) ? 0 : getIntegral().hashCode());
        result = prime * result + ((getChargecard() == null) ? 0 : getChargecard().hashCode());
        result = prime * result + ((getAuthentication() == null) ? 0 : getAuthentication().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getIdentificationnumber() == null) ? 0 : getIdentificationnumber().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getImg() == null) ? 0 : getImg().hashCode());
        result = prime * result + ((getSpawntime() == null) ? 0 : getSpawntime().hashCode());
        result = prime * result + ((getDel() == null) ? 0 : getDel().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", username=").append(username);
        sb.append(", phone=").append(phone);
        sb.append(", investors=").append(investors);
        sb.append(", integral=").append(integral);
        sb.append(", chargecard=").append(chargecard);
        sb.append(", authentication=").append(authentication);
        sb.append(", sex=").append(sex);
        sb.append(", identificationnumber=").append(identificationnumber);
        sb.append(", address=").append(address);
        sb.append(", img=").append(img);
        sb.append(", spawntime=").append(spawntime);
        sb.append(", del=").append(del);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}